<template>
  <div>
    <div class="bigbox">
      <div class="header">
        <p @click="fun()">&lt;</p>
      </div>

      <div class="zgyd">
        <img src="img/wangimg/imgs/denglu-1.gif" alt="" />
        <span>欢迎登录</span>
      </div>

      <van-form @submit="onSubmit">
        <van-field
          v-model="username"
          name="手机号"
          label="手机号"
          placeholder="请输入手机号"
          :rules="[{ required: true, message: '请填手机号' }]"
        />
        <van-field
          v-model="password"
          type="password"
          name="密码"
          label="密码"
          placeholder="密码"
          :rules="[{ required: true, message: '请填写密码' }]"
        />
        <div style="margin: 16px">
          <van-button round block type="info" native-type="submit"
            >登录</van-button
          >
        </div>
      </van-form>

      <div class="diyu">
        <u>本机移动号码登录</u>
      </div>

      <div class="dibu">
        <p>查看
          <span>《服务协议》</span>
          及
          <span>《隐私政策》</span>
          </p>
        <span>-仅移动号码支持自动登录-</span>
      </div>

    </div>
  </div>
</template>

<script>
export default {
  methods: {
    fun() {
      this.$router.go(-1);
    },
  },
};
</script>

<style scoped>
* {
  padding: 0;
  margin: 0;
  list-style-type: none;
}
.bigbox {
  width: 100%;
  height: 100%;
  background-color: #f6f6f6;
}
.header {
  width: 100%;
  height: 0.46rem;
  margin-bottom: 0.2rem;
  background-color: white;
}
.header p {
  font-size: 0.26rem;
  line-height: 0.46rem;
  position: absolute;
  left: 0.2rem;
}

.zgyd {
  width: 100%;
  height: 0.64rem;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  background-color: white;
}
.zgyd img {
  width: 0.34rem;
  height: 0.34rem;
  margin-left: 0.3rem;
  margin-right: 0.1rem;
}
.zgyd span {
  font-size: 0.26rem;
}

.diyu {
  width: 100%;
  height: 0.46rem;
  text-align: center;
  line-height: 0.46rem;
  background-color: white;
}
.diyu u {
  color: black;
  font-size: 0.14rem;
}

.van-form{
  width: 100%;
  background-color: #fff;
}
.van-field{
  width: 90%;
  height: 0.4rem;
  margin: auto;
  line-height: 0.4rem;
}

.dibu{
  width: 100%;
  height: 0.8rem;
  position: fixed;
  bottom: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: column;
  background-color: white;
}
.dibu p{
  font-size: 0.14rem;
}
.dibu p span{
  color: blue;
  font-size: 0.14rem;
}
.dibu span{
  font-size: 0.1rem;
  color: gray;
}
</style>
